package com.cjq.allservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author cjq
 * @since 2022-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品id")
      @TableId(value = "goods_id", type = IdType.ID_WORKER_STR)
    private String goodsId;

    @ApiModelProperty(value = "商品标题")
    private String goodsText;

    private String avatar;

    @ApiModelProperty(value = "商品描述")
    private String goodsInfo;

    @ApiModelProperty(value = "商品原价")
    private Double goodsFirstPrice;

    @ApiModelProperty(value = "商品售价")
    private Double goodsSecondPrice;

    @ApiModelProperty(value = "商品折扣价")
    private Double goodsThirdPrice;

    @ApiModelProperty(value = "商品销量")
    private Integer goodsSell;

    @ApiModelProperty(value = "商品库存")
    private Integer goodsNumber;

    @ApiModelProperty(value = "商品状态：0-下架；1-上架")
    private Integer goodsStatus;

    @ApiModelProperty(value = "商品类型id")
    private String goodsTypeId;

    @ApiModelProperty(value = "商品品牌id")
    private String goodsBrandId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Boolean deleted;


}
